#include <iostream>
#include <iomanip>
using namespace std;
float average(int a[], int len)
{
    int sum = 0;
    for(int i = 0; i<len; i++)
    {
        sum = sum + *(a+i); //a[i]
    }
    return (float)sum/len;
}
float findMax(int a[],int len,bool ifMax = true)
{
    int temp = a[0];
    int min = a[0];
    for(int i = 1; i<len; i++)
    {
        if(a[i]>temp)
        {
            temp = a[i];
        }
        if(a[i] < min)
        {
            min = a[i];
        }
    }
    switch(ifMax)
    {
        case true:
            return temp;
            break;
        case false:
            return min;
    }
    
}
int main()
{
    int N;
    cin>>N;
    int s[100];
    for(int i = 0; i<N; i++)
        cin>>s[i];
    cout<<fixed<<setprecision(2)<<"average = "<<average(s,N)<<endl;
    cout<<"max = "<<fixed<<setprecision(2)<<findMax(s,N,true)<<endl;
    cout<<"min = "<<fixed<<setprecision(2)<<findMax(s,N,false)<<endl;
}